import { Module } from '@nestjs/common';
import { AdminService } from './admin.service';
import { AdminController } from './admin.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Admin } from './entities/admin.entity';
import { RoleAdmin } from './entities/roleAdmin.entity';
import { CacheModule } from '@nestjs/cache-manager';
@Module({
  imports: [
    TypeOrmModule.forFeature([Admin, RoleAdmin]),
    CacheModule.register()
  ],
  controllers: [AdminController],
  providers: [AdminService],
})
export class AdminModule {}
